<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>1.promise</title>
	</head>
	<body>
		<script type="text/javascript" >
			const p = new Promise((resolve,reject)=>{
				setTimeout(()=>{
					reject(666)
				},1000)
			})
		</script>
	</body>
</html>